package com.xr.mapper;

import com.github.pagehelper.Page;
import com.xr.pojo.Member;
import com.xr.pojo.MemberExample;
import com.xr.pojo.SetMeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberMapper {
    public Integer findMemberCountBeforeDate(String date);
    //    分页查询+条件
    Page<Member> selectByQueryString(String queryString);
    //根据电话号码查询会员
    Member queryByTelephone(String telephone);

    long countByExample(MemberExample example);

    int deleteByExample(MemberExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Member record);

    int insertSelective(Member record);

    List<Member> selectByExample(MemberExample example);

    Member selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Member record, @Param("example") MemberExample example);

    int updateByExample(@Param("record") Member record, @Param("example") MemberExample example);

    int updateByPrimaryKeySelective(Member record);

    int updateByPrimaryKey(Member record);
}